<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
	<head>
		<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
		<title>Bundles &mdash; Intype Documentation</title>
		<link rel="stylesheet" href="css/static.css" type="text/css" />
		<link rel="stylesheet" href="css/content.css" type="text/css" />
	</head>
	<body>
		<div id="page"><div id="page-inner">

			<div id="sub-header"><div id="sub-header-inner">
				&nbsp;
			</div></div>

			<div id="cols">

				<div id="nav">
					<div id="nav-inner">
						<h1>Manual</h1>
						<ul>
							<li><a href="introduction.html" class="title"><span>Introduction</span></a></li>
							<li><a href="editing.html" class="title"><span>Editing</span></a>
							<ul>
								<li><a href="selections.html" class="title"><span>Selections</span></a></li>
								<li><a href="find_and_replace.html" class="title"><span>Find & Replace</span></a></li>
							</ul>
							</li>
							<li><a href="preferences.html" class="title"><span>Preferences</span></a>
							<ul>
								<li><a href="appearance_preferences.html" class="title"><span>Appearance Preferences</span></a></li>
							</ul>
							</li>
							
							<li><a href="scopes.html" class="title"><span>Scopes</span></a>
							<ul>
								<li><a href="document_scopes.html" class="title"><span>Document Scopes</span></a></li>
								<li><a href="application_scopes.html" class="title"><span>Application Scopes</span></a></li>
								<li><a href="scope_selectors.html" class="title"><span>Scopes Selectors</span></a></li>
								<li><a href="scope_naming_conventions.html" class="title"><span>Naming Conventions</span></a></li>
							</ul>
							</li>
							
							<li><a href="bundles.html" class="title"><span>Bundles</span></a>
							<ul>
								<li><a href="bundle_items.html" class="title"><span>Bundle Items</span></a></li>
								<li><a href="scopes.html" class="title"><span>Scopes</span></a></li>
								<li><a href="snippets.html" class="title"><span>Snippets</span></a></li>
								<li><a href="languages.html" class="title"><span>Languages</span></a></li>
								<li><a href="built_in_bundles.html" class="title"><span>Built-In Bundles</span></a></li>
							</ul>
							</li>
							<li><span class="title missing"><span>appendix</span></span>
							<ul>
								<li><a href="jasmine.html" class="title"><span>Jasmine</span></a></li>
								<li><a href="regular_expressions.html" class="title"><span>Regular Expressions</span></a></li>
							</ul>
							</li>
						</ul>
					</div>
				</div>

				<div id="content">
					<div id="content-right">
						<div id="content-left">
							<div id="content-inner">
								<h1>Bundles</h1>

<p>Bundles are sets of additional grammars, snippets, commands, etc. (also reffered to as <em>bundle items</em>). In this section we will walk through creating your own bundles. We will also explain each bundle item type and, in examples, show how you can create your own, or modify existing.</p>

<h2>Folders</h2>

<p>Built-in bundles, or bundles from other users are usually stored in Intype's installation folder, which in most cases is <code>C:\Program Files\Intype\bundles</code>. <em>Bundles stored here are not to be modified.</em> For modification, your own bundles, or bundle development, it is better to store them into your user folder at <code>C:\Program Files\Intype\user\bundles</code>.</p>

<h2>Creating a New Bundle</h2>

<p>To create a bundle, simply create new folder &lt;Bundle_Name&gt;.itBundle in <code>C:\Program Files\Intype\user\bundles</code>:</p>

<pre>   
C:\Program Files\Intype\<span class="h">user</span>\bundles\<span class="h">MyBundle.itBundle</span>
</pre>

<h3>Bundle Properties (info.itInfo)</h3>

<p>So bundle, in it's raw, is just a folder with itBundle extension. To define some other properties, such as title, or menu, you can create an <code>info.itInfo</code> file in the root of the bundle folder. It looks like this:</p>

<pre><code>{
    title: "Bundle Title"
    menu: [
        &lt;Menu_Definition&gt;
    ]
}
</code></pre>

<p>If <code>title</code> property is not specified, the folder name is used as title of the bundle. If you'd like to define a menu for your bundle, take a look at [bundles_menu][] section for more info.</p>
							</div>
						</div>
					</div>
				</div>

			</div>

		</div>

		</div>
	</body>
</html>